package com.hj.springframework2.handler;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

/**
 * @Author : hujing
 * @Date: 2025/6/24 16:56
 * @Description:
 */
public class MyInvocationHandler implements InvocationHandler {
    
    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        System.out.println("before invoke");
        Object result = method.invoke(proxy, args);
        System.out.println("after invoke");
        return result;
    }

    public static void main(String[] args) {
        
    }
}
